package com.lt.test.provider.mapper;

import com.lt.test.entity.DTO.MenuDTO;
import com.lt.test.entity.QueryModel.SysQueryModel;

import java.util.List;

/**
 * 权限相关
 * @author zhengchuan
 *
 */
public interface PrivilegeMapper {
	/**
	 * 根据菜单的父id和角色id去查询菜单
	 * @return
	 * @throws Exception
	 */
	List<MenuDTO> findMenuByParentIdAndRoleId(SysQueryModel queryModel) throws Exception;

    List<String> findPermissionStrList(String roleId) throws Exception;

    List<String> findPermissionNamestrList(String roleId) throws Exception;
}
